package com.shazhu.nongjt.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shazhu.common.annotation.Excel;
import com.shazhu.common.core.domain.BaseEntity;

/**
 * 合格证高速打印任务对象 cert_highspeed_print_task
 * 
 * @author shazhu
 * @date 2025-09-29
 */
public class CertHighspeedPrintTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 打印任务ID */
    private String id;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 关联打印设置ID */
    @Excel(name = "关联打印设置ID")
    private String settingId;

    /** 类型：0=批量，1=单张 */
    @Excel(name = "类型：0=批量，1=单张")
    private Integer taskType;

    /** 总数量 */
    @Excel(name = "总数量")
    private String totalCount;

    /** 已完成数量 */
    @Excel(name = "已完成数量")
    private String completedCount;

    /** 失败数量 */
    @Excel(name = "失败数量")
    private String failedCount;

    /** 状态：0=待处理，1=处理中，2=已完成，3=已终止，4=失败 */
    @Excel(name = "状态：0=待处理，1=处理中，2=已完成，3=已终止，4=失败")
    private Integer taskStatus;

    /** 打印机标识 */
    @Excel(name = "打印机标识")
    private String printerId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date startTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date endTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String failReason;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String operator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String certCodeRange;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }

    public void setSettingId(String settingId) 
    {
        this.settingId = settingId;
    }

    public String getSettingId() 
    {
        return settingId;
    }

    public void setTaskType(Integer taskType) 
    {
        this.taskType = taskType;
    }

    public Integer getTaskType() 
    {
        return taskType;
    }

    public void setTotalCount(String totalCount) 
    {
        this.totalCount = totalCount;
    }

    public String getTotalCount() 
    {
        return totalCount;
    }

    public void setCompletedCount(String completedCount) 
    {
        this.completedCount = completedCount;
    }

    public String getCompletedCount() 
    {
        return completedCount;
    }

    public void setFailedCount(String failedCount) 
    {
        this.failedCount = failedCount;
    }

    public String getFailedCount() 
    {
        return failedCount;
    }

    public void setTaskStatus(Integer taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public Integer getTaskStatus() 
    {
        return taskStatus;
    }

    public void setPrinterId(String printerId) 
    {
        this.printerId = printerId;
    }

    public String getPrinterId() 
    {
        return printerId;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setFailReason(String failReason) 
    {
        this.failReason = failReason;
    }

    public String getFailReason() 
    {
        return failReason;
    }

    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    public void setCertCodeRange(String certCodeRange) 
    {
        this.certCodeRange = certCodeRange;
    }

    public String getCertCodeRange() 
    {
        return certCodeRange;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskName", getTaskName())
            .append("settingId", getSettingId())
            .append("taskType", getTaskType())
            .append("totalCount", getTotalCount())
            .append("completedCount", getCompletedCount())
            .append("failedCount", getFailedCount())
            .append("taskStatus", getTaskStatus())
            .append("printerId", getPrinterId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("failReason", getFailReason())
            .append("operator", getOperator())
            .append("certCodeRange", getCertCodeRange())
            .append("remark", getRemark())
            .toString();
    }
}
